package com.ruoyi.list.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.list.mapper.HospitalDeviceListMapper;
import com.ruoyi.list.domain.HospitalDeviceList;
import com.ruoyi.list.service.IHospitalDeviceListService;

/**
 * 医院设备清单Service业务层处理
 * 
 * @author zjt
 * @date 2025-01-15
 */
@Service
public class HospitalDeviceListServiceImpl implements IHospitalDeviceListService 
{
    @Autowired
    private HospitalDeviceListMapper hospitalDeviceListMapper;

    /**
     * 查询医院设备清单
     * 
     * @param listId 医院设备清单主键
     * @return 医院设备清单
     */
    @Override
    public HospitalDeviceList selectHospitalDeviceListByListId(Integer listId)
    {
        return hospitalDeviceListMapper.selectHospitalDeviceListByListId(listId);
    }

    /**
     * 查询医院设备清单列表
     * 
     * @param hospitalDeviceList 医院设备清单
     * @return 医院设备清单
     */
    @Override
    public List<HospitalDeviceList> selectHospitalDeviceListList(HospitalDeviceList hospitalDeviceList)
    {
        return hospitalDeviceListMapper.selectHospitalDeviceListList(hospitalDeviceList);
    }

    /**
     * 新增医院设备清单
     * 
     * @param hospitalDeviceList 医院设备清单
     * @return 结果
     */
    @Override
    public int insertHospitalDeviceList(HospitalDeviceList hospitalDeviceList)
    {
        return hospitalDeviceListMapper.insertHospitalDeviceList(hospitalDeviceList);
    }

    /**
     * 修改医院设备清单
     * 
     * @param hospitalDeviceList 医院设备清单
     * @return 结果
     */
    @Override
    public int updateHospitalDeviceList(HospitalDeviceList hospitalDeviceList)
    {
        return hospitalDeviceListMapper.updateHospitalDeviceList(hospitalDeviceList);
    }

    /**
     * 批量删除医院设备清单
     * 
     * @param listIds 需要删除的医院设备清单主键
     * @return 结果
     */
    @Override
    public int deleteHospitalDeviceListByListIds(Integer[] listIds)
    {
        return hospitalDeviceListMapper.deleteHospitalDeviceListByListIds(listIds);
    }

    /**
     * 删除医院设备清单信息
     * 
     * @param listId 医院设备清单主键
     * @return 结果
     */
    @Override
    public int deleteHospitalDeviceListByListId(Integer listId)
    {
        return hospitalDeviceListMapper.deleteHospitalDeviceListByListId(listId);
    }
}
